<?php
namespace app\common\model;

use think\Model;

class InfoSchoolModel extends Model
{
	protected $autoWriteTimestamp='datetime';
	protected $updateTime = false;
	protected $dateFormat = "Y-m-d H:i:s";
	protected $field = true;

	public function setContentAttr($value){
		return htmlspecialchars_decode($value);
	}
	
	public function setBeginTimeAttr($value){
		return strtotime($value);
	}
	public function getBeginTimeAttr($value){
		return date('Y-m-d H:i:s',$value);
	}
}